import request from '@/utils/request.js'

// 查询 <%= comment %> 列表
export const list<%= fn.snakeFormatHump(name, true) %> = (params) => request.get('<%= listApi %>', params)

// 查询 <%= comment %> 详情
export const detail<%= fn.snakeFormatHump(name, true) %> = (params) => request.get('<%= detailApi %>', params)

<%_ if (hasAdd) { _%>
// 新增 <%= comment %>
export const add<%= fn.snakeFormatHump(name, true) %> = (params) => request.post('<%= addApi %>', params)
<%_ } _%>

<%_ if (hasEdit) { _%>
// 修改 <%= comment %>
export const edit<%= fn.snakeFormatHump(name, true) %> = (params) => request.put('<%= editApi %>', params)
<%_ } _%>

<%_ if (hasDel) { _%>
// 删除 <%= comment %>
export const del<%= fn.snakeFormatHump(name, true) %> = (params) => request.delete('<%= delApi %>', params)
<%_ } _%>

<%_ if (hasExport) { _%>
// 导出 <%= comment %> 列表
export const export<%= fn.snakeFormatHump(name, true) %> = (params) => request.get('<%= exportApi %>', params)
<%_ } _%>
